#include "main_window.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent)
{
    _renderer = new Renderer(parent);
    init();
}

//MainWindow::MainWindow(const QGLFormat& format, QWidget *parent) :
//    QGLWidget(format, parent)
//{
//    _renderer = new Renderer(parent);
//    init();
//}

MainWindow::~MainWindow()
{
    delete _renderer;
}

void MainWindow::init()
{
    //makeCurrent();
    this->setCentralWidget(_renderer);
    _renderer->init();
}

